package com.fancy.net.forward
{
	import flash.utils.Dictionary;

	/** 网络包转发清单 */
	public class ForwardList
	{
		private static var LogicNetList:Dictionary = new Dictionary();
		private static var DisplayNetList:Dictionary = new Dictionary();
		private static var UINetList:Dictionary = new Dictionary();
		private static var AvatarNetList:Dictionary = new Dictionary();
		private static var MapNetList:Dictionary = new Dictionary();
		private static var LoaderNetList:Dictionary = new Dictionary();
		
		public function ForwardList()
		{
		}
		
		public static function initialize():void
		{
			LogicNetList["0000"] = true;
			LogicNetList["0104"] = true;
			//
			DisplayNetList["0000"] = true;
			//
			UINetList["0000"] = true;
			//
			AvatarNetList["0000"] = true;
			//
			MapNetList["0000"] = true;
			//
			LoaderNetList["0000"] = true;
		}
		
		/** Logic模块是否需要收听此消息 */
		public static function LogicNeed(cmd:String):Boolean
		{
			return Boolean(LogicNetList[cmd]);
		}
		
		/** Display模块是否需要收听此消息 */
		public static function DisplayNeed(cmd:String):Boolean
		{
			return Boolean(DisplayNetList[cmd]);
		}
		
		/** UI模块是否需要收听此消息 */
		public static function UINeed(cmd:String):Boolean
		{
			return Boolean(UINetList[cmd]);
		}
		
		/** Avatar模块是否需要收听此消息 */
		public static function AvatarNeed(cmd:String):Boolean
		{
			return Boolean(AvatarNetList[cmd]);
		}
		
		/** Map模块是否需要收听此消息 */
		public static function MapNeed(cmd:String):Boolean
		{
			return Boolean(MapNetList[cmd]);
		}
		
		/** Loader模块是否需要收听此消息 */
		public static function LoaderNeed(cmd:String):Boolean
		{
			return Boolean(LoaderNetList[cmd]);
		}
		
	}
}